﻿using System;
using System.Collections.Generic;
using KM.DAT;
using KM.ENT;

namespace KM.BUS
{
    public class busKhuyenMai
    {
        public busKhuyenMai()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public void insert(entKhuyenMai entKM)
        {
            datKhuyenMai datKM = new datKhuyenMai();
            datKM.insert(entKM);
        }
        public List<entKhuyenMai> getAll(int loaiKhuyenMaiId)
        {
            datKhuyenMai datKM = new datKhuyenMai();
            List<entKhuyenMai> lst = new List<entKhuyenMai>();
            lst = datKM.getAll(loaiKhuyenMaiId);
            return lst;
        }
        public entKhuyenMai getInfo(entKhuyenMai entKM)
        {
            datKhuyenMai datKM = new datKhuyenMai();
            entKhuyenMai entKMNew = new entKhuyenMai();
            entKMNew = datKM.getInfo(entKM);
            return entKMNew;
        }
    }
}